











<div class="x-body">
    <form class="layui-form form_single" action="{:url()}" method="post">
        <div class="layui-form-item">
            <label  class="layui-form-label">
                应用名称
            </label>
            <div class="layui-input-inline">
                <input type="text" id="name" name="name"  value="{$info['name']|default=''}"
                       autocomplete="off" class="layui-input" >
            </div>


        </div>

        <div class="layui-form-item">
            <label  class="layui-form-label">
                应用分类
            </label>
            <div class="layui-input-block">
                <select name="class" >
                    {volist name='class' id='vo'}
                    <option value="{$vo['id']}" {notempty name="$info['class']"}{if condition="$info['class'] eq $vo['id']"} selected="selected" {/if}{/notempty} >{$vo['name']}</option>
                    {/volist}
                </select>
            </div>


        </div>

        <div class="layui-form-item">
            <label  class="layui-form-label">
                应用数据类型
            </label>
            <div class="layui-input-block">
                <select name="type" >

                    <option value="1" {notempty name="$info['type']"}{if condition="$info['type'] eq 1"} selected="selected" {/if}{/notempty} >兑换券</option>
                    <option value="2" {notempty name="$info['type']"}{if condition="$info['type'] eq 2"} selected="selected" {/if}{/notempty} >电子券</option>
                    <option value="3" {notempty name="$info['type']"}{if condition="$info['type'] eq 3"} selected="selected" {/if}{/notempty} >会员卡</option>

                </select>
            </div>


        </div>
        <div class="layui-form-item">
            <label for="logo" class="layui-form-label">
                <span class="x-red">*</span>应用logo
            </label>
            <div id="logo" class="layui-input-block">
                {assign name="logo" value="$info.logo|default='0'" /}
                {:widget('file/index', ['name' => 'logo', 'value' => $logo, 'type' => 'img'])}
            </div>
            <!--<div class="layui-form-mid layui-word-aux">-->
            <!--(请上传单张封面图片)-->
            <!--</div>-->
        </div>


        <div class="layui-form-item">
            <label  class="layui-form-label">
                接入数据类型
            </label>
            <div class="layui-input-inline">
                <select name="insert_type" >

                    <option value="1" {notempty name="$info['insert_type']"}{if condition="$info['insert_type'] eq 1"} selected="selected" {/if}{/notempty} >第三方接口</option>
                    <option value="2" {notempty name="$info['insert_type']"}{if condition="$info['insert_type'] eq 2"} selected="selected" {/if}{/notempty} >后台发货</option>

                </select>
            </div>


        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">
                应用描述
            </label>
            <div class="layui-input-block">
                <textarea class="form-control textarea_editor" name="describer" >{$info['describer']|default=''}</textarea>
                {:widget('editor/index', array('name'=> 'describer','value'=> ''))}
            </div>
        </div>



        <div class="layui-form-item">
            <label  class="layui-form-label">
                库存数量
            </label>
            <div class="layui-input-inline">
                <input type="text" id="number" name="number"  value="{$info['number']|default='0'}"
                       autocomplete="off" class="layui-input" >
            </div>


        </div>

        <div class="layui-form-item">
            <label  class="layui-form-label">
                每个账户限制购买总量
            </label>
            <div class="layui-input-inline">
                <input type="text" id="limit_buy" name="limit_buy"  value="{$info['limit_buy']|default='0'}"
                       autocomplete="off" class="layui-input" >
            </div>


        </div>

        <div class="layui-form-item">
            <label  class="layui-form-label">
                每日限制订单数
            </label>
            <div class="layui-input-inline">
                <input type="text" id="limit_order" name="limit_order"  value="{$info['limit_order']|default='0'}"
                       autocomplete="off" class="layui-input" >
            </div>


        </div>

        <div class="layui-form-item">
            <label  class="layui-form-label">
                亏损余额购买限制
            </label>
            <div class="layui-input-inline">
                <input type="text" id="limit_loss" name="limit_loss"  value="{$info['limit_loss']|default='0'}"
                       autocomplete="off" class="layui-input" >
            </div>


        </div>
        <div class="box-footer">

            <input type="hidden" name="id" value="{$info['id']|default='0'}"/>
            {include file="layout/edit_btn_group"/}

        </div>

    </form>
</div>



<script type="text/javascript">

    ob.setValue("is_hide", {$info.is_hide|default=0});
    ob.setValue("is_shortcut", {$info.is_shortcut|default=0});
    ob.setValue("pid", {$info.pid|default=0});

</script>

